/*
 *
 *      Copyright (c) 2018-2025, proj All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: proj
 *
 */

package com.ykht.proj.coupon.api.feign;

import com.ykht.proj.common.core.constant.ServiceNameConstants;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.entity.CnBrand;
import com.ykht.proj.coupon.vo.BindedBrandUserByLoginIdVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * 门店api
 * @author proj
 * @date 2018/6/22
 */
@FeignClient(contextId = "remoteBrandService", value = ServiceNameConstants.COUPON_SERVICE)
public interface RemoteBrandService {


	/**
	 * 判断用户是否已 绑定 公司或者门店
	 * @param companyId 参数
	 * @return R
	 */
	@PostMapping("/cnbrand/getByCompanyId")
	R<List<Long>> getByCompanyId(@RequestBody String companyId);

	/**
	 * 判断用户是否已 绑定 公司或者门店
	 * @param loginId 参数
	 * @return R
	 */
	@PostMapping("/cnbrand/getByLoginId")
	R<List<Long>> getByLoginId(@RequestBody String loginId);

	@PostMapping("/cnbrand/bindedBrandUserByLoginId")
	R<BindedBrandUserByLoginIdVo> bindedBrandUserByLoginId();

	/**
	 * 根据品牌ID获取品牌信息
	 * @param brandId 参数
	 * @return R
	 */
	@PostMapping("c/brand/getByBrandId/{brandId}")
	CnBrand getByBrandId(@RequestBody Long brandId);

}
